<html>
<head></head>
<body>
<?php

$con=mysql_connect("localhost","root","");
$db=mysql_select_db("db_lols",$con);

$libraryName=$_POST['libraryName'];
//$libraryNo=''];
$address=$_POST['address'];
$contactNo=$_POST['contactNo'];
$description=$_POST['description'];
//$imgfilename=''];

$query = "INSERT INTO tbllibrary_copy VALUES('" . $libraryName . "','" . $address . "','" . $contactNo . "','" . $description . "')";

$result = mysql_query($query);
if($result=true){
    echo("Record sucessfully added.");
}else{
    echo("Adding failed.");
}
mysql_close();

?>
</body>
</html>
